export const formOneItemLayout = {
    labelCol: { span: 6 },
    wrapperCol: { span: 18 }
};

// 常用正则表达式
export const regexp = {
    name: /([\u4E00-\uFA29]|[\uE7C7-\uE7F3]|[a-zA-Z0-9_·]){1,30}/, // 备用：/^([\u4E00-\u9FA5\uf900-\ufa2d·s]|[a-zA-Z0-9_·]){2,20}$/
    age: /^(?:[1-9][0-9]?|1[01][0-9]|120)$/,
    phone: /^1[3456789][0-9]{9}$/,
    contact: /^[0-9\-]*$/,
    cardNo: /(^[1-9]\d{5}(18|19|([23]\d{1}))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$)|(^[1-9]\d{5}\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{2}$)/,
    strings: /^[0-9a-zA-Z_]{1,}$/, //必须是26个英文字母或者下划线组成的字符串！
    email: /^([a-zA-Z]|[0-9])(\w|\-)+@[a-zA-Z0-9]+\.([a-zA-Z]{2,4})$/,
    specialChar: /[\-\_\,\!\|\~\`\(\)\#\$\%\^\&\*\{\}\:\;\"\L\<\>\?]/g,
    companyCode: /^[0-9a-zA-Z]{1,30}$/,
    companyName: /^([\u4E00-\uFA29]|[\uE7C7-\uE7F3]|[a-zA-Z0-9]){1,30}$/,
    connactName: /^([\u4E00-\uFA29]|[\uE7C7-\uE7F3]|[a-zA-Z]){1,20}$/,
    address: /^([\u4E00-\uFA29]|[\uE7C7-\uE7F3]|[a-zA-Z0-9_·]){1,125}$/,
    //password:/^(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[^a-zA-Z0-9]).{4,30}$/    //  密码中必须包含大小字母、数字、特称字符，至少个字符，最多30个字符
    password:/^[0-9a-zA-Z]{4,30}$/    //  密码中必须包含大小字母、数字、特称字符，至少4个字符，最多30个字符
};

